package com.cloudbroker.bcs.platform.dav.middle.util;

import com.cloudbroker.bcs.common.util.RandomUtil;

public class VerifyInfoUtil {
    
    private static final int DEFAULT_VERIFY_CODE_LENGTH = 6;
    
    private static int defaultVerifyCodeLength = DEFAULT_VERIFY_CODE_LENGTH;
    
    public static String genVerifyCode() {
        return genVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genVerifyCode(int length) {
        return genNumericAlphaVerifyCode(length);
    }
    
    public static String genNumericVerifyCode() {
        return genNumericVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genLowerAlphaVerifyCode() {
        return genLowerAlphaVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genUpperAlphaVerifyCode() {
        return genUpperAlphaVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genAlphaVerifyCode() {
        return genAlphaVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genNumericAlphaVerifyCode() {
        return genNumericAlphaVerifyCode(defaultVerifyCodeLength);
    }
    
    public static String genNumericVerifyCode(int length) {
        return RandomUtil.genNumericRandomString(length);
    }
    
    public static String genLowerAlphaVerifyCode(int length) {
        return RandomUtil.genLowerAlphaRandomString(length);
    }
    
    public static String genUpperAlphaVerifyCode(int length) {
        return RandomUtil.genUpperAlphaRandomString(length);
    }
    
    public static String genAlphaVerifyCode(int length) {
        return RandomUtil.genAlphaRandomString(length);
    }
    
    public static String genNumericAlphaVerifyCode(int length) {
        return RandomUtil.genNumericAlphaRandomString(length);
    }
    
    public static String genVerifyCode(String dict, int length) {
        return RandomUtil.genRandomString(dict, length);
    }
    
    public static String genInvitationCode(String dict, int length) {
        return RandomUtil.genRandomString(dict, length);
    }
    
}
